Hi all,
I'm
new using the Kflop controller and I'm wondering if
someone could help with the following two questions.
I'm
working on an application where I need to do the
following:
- I
execute a C-program using an M code (example below with
M101),
This C-program basically sends a couple of commands to
an extruder (Stop) and some other peripheral devices.
However, I need to know when the next G-code (G0 X30.
Y... in the example below) line has been executed in
order to start the extruder again. This is basically for
turning on and off the extruder.
I've
tried to use the CheckDone command without success, and
to monitor the current destination of the individual
channels, but I've set the motion planner to perform
continuous trajectories, so I can't detect when it
finishes executing the fast movement command.
G01
X100. Y50. Z14.
G01
X20. Y50. Z14
M101
G0
X30. Y40. Z14.
G01
X10. Y40. Z14.
So my
questions are:
Is it
possible to retrieve the position to go (commanded
position) from the motion planner? If do so, what's the
register that I need to look at?,
On the
other hand, I know that commands are loaded into a
buffer prior to execution, (based on the look ahead
parameter). So my question would be, where is this
register located?
I
would appreciate any help and I'm open to any
suggestions.
Thanks
in advance,